<?php
$a = array('touser'=>"oZAO_wIUIGDIHAsnm90PAmf4St2U",
        'template_id'=>"loczl02vboG3H_m3Du3BhxeYuEnW5IreB2BY8ZfF4w0",
         'uri'=>"http://weixin.qq.com/download",
         //'uri'=>"http://www.cnblogs.com/txw1958/",
        'topcolor'=>"#7B68EE",
        'data'=>array('first' => array('value' => "您的设备发出报警，报警内容如下！\\n",
                                    'color' => "#FF0000",
                                    ),
                    'content'=>array('value' => "过压报警",
                                    'color' => "#0000FFF",
                                    ),
                    'time'=>array('value' => "eventime\\n",
                                    'color' => "#0000FFF",
                                    ),
                    'name'=>array('value' => "OPC",
                                'color' => "#0000FFF",
                                ),
                    'tag'=>array('value' => "Tag2",
                                'color' => "#0000FFF",
                                ),
                    'type'=>array('value' => "Above",
                                'color' => "#0000FFF",
                                ),
                    'info'=>array('value' => "告警值为rows[value],当前值为rowss[Tag2]",
                                'color' => "#0000FFF",
                                ),
                    ),
        );

$b = json_encode($a);
var_dump($b);


?>


